# -*- coding: utf-8 -*-

import datetime, time
# import hashlib

class uuid:

    _uuid = 0
    @staticmethod
    def get_uuid():
        uuid._uuid += 1
        if uuid._uuid >= 100:
            uuid._uuid = 0
        src = "{0:%y%m%d%H%M%S%f}{1:02d}".format(datetime.datetime.now(), uuid._uuid)
        src = "{0:%t}".format(datetime.datetime.now())
        return src
        # m = hashlib.md5()
        # m.update(src.encode('utf-8'))
        # return m.hexdigest()

    _tick = 0
    def get_tick():
        if uuid._tick == 0:
            uuid._tick = int(time.time() * 10000000000.0)
        else:
            uuid._tick += 1
        return '%d' % uuid._tick


if __name__ == '__main__':

    for n in range(1, 10):
        print(uuid.get_tick())
